package com.ybwh.springboot2.validator;

import com.ybwh.springboot2.valid.UnionValids;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDate;


@UnionValids(value = {LevelUnionFieldValidator.class})
@Data
public class SettleInfo {
    @NotNull(message = "id不能为空")
    private Integer id;
    @NotBlank(message = "name不能为空")
    private String name;

    private LocalDate birth;

    private String level;
}